package com.max.mil.service.app;

import java.util.Date;
import java.util.List;

import com.max.mil.common.util.DataPage;
import com.max.mil.model.Category;
import com.max.mil.model.FullMinus;
import com.max.mil.model.Product;

public interface YHZService 
{
	
	public long addFullMinus(String promotionTitle, int fullMinusType, String conditionValues, String contentValues, 
			String productIds, String productSerialIds, String categoryIds, String brandCategoryIds, String excludeProductIds, 
			int repeat, int limitNumPerUser, int joinLevelType, Date startDate, Date endDate) throws Exception;
	
	public void delFullMinus(String id) throws Exception;
	
	public DataPage<FullMinus> getFullMinus(String productId, String productCname, String categoryId, 
			int status, Date startDate, Date endDate, int pageNo, int pageSize) throws Exception;
	
	public DataPage<FullMinus> getFullMinus(int status, int pageNo, int pageSize) throws Exception;
	
	public FullMinus getFullMinusDetail(long id, int fullMinusType) throws Exception;
	
	
	/**=======================================================================================================*/
	public DataPage<Product> getProduct(String productCname,String productIdList, String productCodeList,
			Integer categoryId, Integer merchantCategoryId, int pageNo, int pageSize) throws Exception;
	
	public DataPage<Product> getProduct(int type, String productCname,String productIdList, String productCodeList,
			Integer categoryId, Integer merchantCategoryId, int pageNo, int pageSize) throws Exception;
	
	public List<Category> getCateList(int type) throws Exception;
	
	
	/**=======================================================================================================*/
	public String fullCutTempletReplace(String id, String title, Date startDate, Date endDate, int fm_type, 
			Integer repeat, Integer jl_type, String aaa, String bbb) throws Exception;
	
	public String fullCutDetailEdit(String id, String changeInfos) throws Exception;
}
